package com.durian.domain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import lombok.*;

/**
 * 订单与书籍关联表  实体类
 *
 * @author Durian
 * @since 2023-11-23
 */
@Data
@Builder
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("obs_order_book")
public class ObsOrderBook implements Serializable {

    /**
     * 订单书籍关联表id
     */
    @TableId("order_book_id")
    private Long orderBookId;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 书籍id
     */
    private Long bookId;

    /**
     * 书籍的数量
     */
    private Integer bookCount;
}
